package com.tuozixuan.liteflow.component;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.core.NodeBooleanComponent;

/**
 * 布尔组件是以前IF组件，WHILE组件，BREAK组件的统一。他们三个组件有共同特征，都是返回布尔类型，所以将三个组件类型合三为一，成为了布尔组件。
 * 
 * <pre>
 * 布尔组件可用于以下关键字中：
 * IF...ELIF...ELSE，
 * WHILE...DO...，
 * FOR...DO...BREAK,WHILE...DO...BREAK,ITERATOR...DO...BREAK
 * </pre>
 *
 */
@LiteflowComponent("booleanFalseComponentExample")
public class BooleanFalseComponentExample extends NodeBooleanComponent {

	private final Logger logger = LoggerFactory.getLogger(this.getClass());
	
	@Override
	public boolean processBoolean() throws Exception {
		logger.info("processBoolean()...");
		return false;
	}

}
